﻿using RuoVea.ExDto;

namespace RuoVea.Stocks.Server.Dto;

/// <summary>
/// 
/// </summary>
public class RecordsParam : PageParam 
{
    /// <summary>
    /// 分类:取字典:stocks_records
    /// </summary>
    public long CategoryId { get; set; }
    /// <summary>
    /// 操作时间
    /// </summary>
    public DateTime RecordTime { get; set; }

    /// <summary>
    /// 金额
    /// </summary>
    public double Amount { get; set; }

    /// <summary>
    /// 几手
    /// </summary>
    public int Lots { get; set; }

    /// <summary>
    /// 买入/卖出
    /// </summary>
    public int Purchase { get; set; }
}
public class RecordsPageParam : RecordsParam
{
    private int _currentPage;
    /// <summary>
    /// 
    /// </summary>
    public int CurrentPage
    {
        get { return _currentPage; }
        set
        {
            _currentPage = value;
            base.PageNo = value;
        }
    }
}